package com.alizhezi.base

import android.app.Application
import com.orhanobut.logger.AndroidLogAdapter
import com.orhanobut.logger.Logger.addLogAdapter
import com.orhanobut.logger.PrettyFormatStrategy


/**
 * Copyright (C) 2019 The ailizhezi.com Inc. All rights reserved
 * Author: 吕鹏 gavin6116@gmail.com
 * Time Created at 2019-10-24
 * Description： 5db151560cafb2b2790010a8
 */
open abstract class MoLuBaseApplication : Application() {

    override fun onCreate() {
        super.onCreate()
        initLogger()
    }


    private fun initLogger() {

        var formatStrategy= PrettyFormatStrategy.newBuilder()
            .tag("MoLu")
            .build()


        addLogAdapter(AndroidLogAdapter(formatStrategy))
    }


}